package com.bjpowernode.springboot.dao;

import com.bjpowernode.springboot.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * CreateTime：2020/9/1 17:29
 */

@Mapper
public interface UserDao {

    @Select("select * from tbl_user")
    List<User> getUserList();

    @Update("update tbl_user set name=#{name} where id=#{id}")
    void update(User user);
}
